<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <script type="text/javascript">
	function del()
	{
		if(confirm("确定删除吗？"))
		{
			return true;	
		}
		
		return false;
	}
	
	
	</script>
  </head>
  
  <body>
    <table width="1000" border="1" bgcolor="#D0D0D0" align="center">
     <tr>
         <td colspan="5" class="STYLE1"><div align="center"><b>留言列表</b></div></td>
     </tr>
    <tr>
          
        <td width="" align="center"><font size="2">留言标题</font></td>
        <td width="" align="center"><font size="2">留言内容</font></td>
        <td width="" align="center"><font size="2">留言日期</font></td>

        <td width="" align="center"><font size="2">修改?</font></td>
        <td width="" align="center"><font size="2">删除?</font></td>         
    </tr>



		<s:iterator value="list_note">
			<tr>

				<td><font size="2">
					<s:a href="getSingleNote.action?note_id=%{note_id}">
						<s:property value="note_title" />
					</s:a>
				</font>
				</td>
				<td><font size="2"><s:property value="note_context" />
				</font>
				</td>
				<td><font size="2"><s:property value="note_time" />
				</font>
				</td>

				<td><s:a href="toUpdateNoteJsp.action?note_id=%{note_id}">修改</s:a>
				</td>
				<td><s:a href="deleteNote.action?note_id=%{note_id}"
						onclick="return del();">删除</s:a>
				</td>

			</tr>
		</s:iterator>
	</table>
  </body>
</html>
